<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-with,initial-scale=1.0">
<title>首页</title>
<script src="https://unpkg.com/vue@next"></script>
 
</head>
<body>
<div id="root">
 
</div>
 
<script>

const app=Vue.createApp({
    data(){
        return{
            content:'hello world'
        }
    },
        template:`
            <div>
            {{content}}
            </div>
        `

});
//vm代表的就是vue应用的根组件
const vm=app.mount('#root')
</script>
</body>
</html>